/*
 * Copyright (c)  2008 Sebastien Tremblay 
 *
 * id3-tag-builder - Main.java
 *
 * All source and documentation is copyrighted by Sebastien Tremblay
 * (seb at ryders dot net) and made available under the Apache License 2.0.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * $Id: Main.java 30 2010-01-08 04:01:06Z ryders $
 */
package com.empireone.id3tagbuilder;

import com.empireone.id3tagbuilder.settings.ApplicationSettingsException;
import com.empireone.id3tagbuilder.settings.XmlApplicationSettings;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * The <code>Main</code> class is the primary interface to the application in
 * both graphical (gui) or command (cmd) mode.
 *
 * @author Sebastien Tremblay
 */
public class Main {

    /**
     *
     * @param args
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

	    @Override
            public void run() {

                try {
                    new com.empireone.id3tagbuilder.gui.Application(new XmlApplicationSettings("settings.xml", "0.1")).setVisible(true);
                } catch (ApplicationSettingsException ex) {
                    Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        });
    }
}
